﻿<ae:TextEditor  
    x:Class="Poet.Views.TextEditorView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ae="http://icsharpcode.net/sharpdevelop/avalonedit"
    ShowLineNumbers="{Binding ShowLineNumbers}"
    WordWrap="{Binding WordWrap}"
    Document="{Binding Document}"
    FontSize="{Binding FontSize}"
    FontStyle="{Binding FontStyle}"
    FontFamily="{Binding FontFamily}"
    FontWeight="{Binding FontWeight}"
    FontStretch="{Binding FontStretch}"
    Background="{Binding Background}"
    Foreground="{Binding Foreground}"
    Encoding="{Binding Encoding}"
    Options="{Binding Options}"
    Name="TextEditorViewBase">

    <ae:TextEditor.Resources>
        <Style TargetType="ae:TextArea">
            <Setter Property="Matches" Value="{Binding TextArea.Matches}"/>
            <Setter Property="Spell" Value="{Binding TextArea.Spell}"/>
            <Setter Property="SyntaxHighlighting" Value="{Binding TextArea.SyntaxHighlighting}"/>
            <Setter Property="SelectionForeground" Value="{Binding TextArea.SelectionForeground}"/>
            <Setter Property="SelectionBorder" Value="{Binding TextArea.SelectionBorder}"/>
			<Setter Property="CurrentLineBorder" Value="{Binding TextArea.CurrentLineBorder}"/>
            <Setter Property="HideCurrentLineWhenTextSelected" Value="{Binding TextArea.HideCurrentLineWhenTextSelected}"/>
  
            <Setter Property="IndentationStrategy" Value="{Binding TextArea.IndentationStrategy}"/>
            <Setter Property="FoldingStrategy" Value="{Binding TextArea.FoldingStrategy}"/>
            <Setter Property="UseFolding" Value="{Binding TextArea.UseFolding}"/>
			<Setter Property="ShowCurrentLine" Value="{Binding TextArea.ShowCurrentLine}"/>
            <Setter Property="AccentuateBorder" Value="{Binding TextArea.AccentuateBorder}"/>
            <Setter Property="AccentuateForeground" Value="{Binding TextArea.AccentuateForeground}"/>

            <Setter Property="AccentuateBrush" Value="{Binding TextArea.AccentuateBrush}"/>
            <Setter Property="CurrentLineBrush" Value="{Binding TextArea.CurrentLineBrush}"/>
            <Setter Property="SelectionBrush" Value="{Binding TextArea.SelectionBrush}"/>

            <Setter Property="LineNumberForeground" Value="{Binding TextArea.LineNumberForeground}"/>
            <Setter Property="LineNumberSeparator" Value="{Binding TextArea.LineNumberSeparator}"/>

            <Setter Property="AccentuateCornerRadius" Value="{Binding TextArea.AccentuateCornerRadius}"/>
            <Setter Property="CurrentLineCornerRadius" Value="{Binding TextArea.CurrentLineCornerRadius}"/>
            <Setter Property="SelectionCornerRadius" Value="{Binding TextArea.SelectionCornerRadius}"/>
        </Style>
    </ae:TextEditor.Resources>
</ae:TextEditor>
